This scene completely ignores reality and most importantly, Newton's
It is also completely unrealistic that if a gun were undergoing such high heat that cartridges were firing due to heat, that each one would go off in order as they cycled through the chamber, which, as already discussed, is impossible. If the gun got that hot, cartridges would simply explode inside the magazine and the grip of the pistol and it would happen in a random, uncontrolled order.
Don't forget that for the gun to fire without such outrageous heat, the firing pin must be cocked, which is a result of the proper slide operation and someone's finger must be on the trigger to disengage the safety and release the firing pin. A Glock handgun simply cannot fire without numerous mechanical functions taking place in the right order and with the correct forces properly applied.
So a complete BOO! on the movie creators that allowed that scene to be included! Its unfeasible, physically impossible and dumbass. It promotes a 'scary', unreasonable fear of firearms for anyone not already familiar with this gun's operation. It distracted from an otherwise well done movie.
One more thing, this time for the television producers- Glock firearms don't have external hammers! There is nothing to cock to make the gun ready to fire after chambering a shell. So will you please stop playing the sound of a Colt Single Action Army revolver, (click, clack click) each and every time someone engages a bad guy on any of the CSI television shows? I can't tell you how many times I have observed a TV character draw his scary, black pistol from his holster, point it at someone he is trying to apprehend, then the sound of the pistol cocking is played, to let the viewer know he really means business. Just stop it! By the same token, there is no sound of the pistol being de-cocked before re-holstering it, which I have also heard.
You TV folks work so hard to produce realistic, gritty shows with all the drama of finding the tiniest piece of evidence to exonerate or convict but you continually misrepresent the use of firearms with these bogus sound effects. So quit it! Take yourself to a gun store and check out the sounds. Then fix your damm shows!